package com.example.beans;

public class DVDPlayer implements MediaPlay{

    private CompactDisc compactDisc;

    public DVDPlayer(CompactDisc compactDisc) {
        this.compactDisc = compactDisc;
    }

    @Override
    public void play() {
        System.out.println("DVD播放器开始播放");
        compactDisc.play();
    }
}
